package cn.zjj.user.domain;

import cn.zjj.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
@Data
public class User extends BaseDomain {
    private String username;

    private String phone;

    private String email;

    private String salt;

    private String password;
    //是否启用
    private Integer state=1;

    private Integer age;
    //创建时间
    @JsonFormat(pattern= "yyyy-MM-dd",timezone = "GMT+8")
    private Date createtime = new Date();
    //用户头像
    private String headImg;
    //登录权限id
    private Long logininfo_id;
    private Logininfo logininfo = new Logininfo();
}
